/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.behavioural.chainofresponsibility;

/**
 *
 * @author Chelsea
 */
public class VenusHandler extends PlanetHandler {
    
public void handleRequest(PlanetEnum request){
if(request==PlanetEnum.VENUS){
System.out.println("VenusHandlerhandles"+request);
System.out.println("Venusispoisonous.nn");
}else{
System.out.println("VenusHandlerdoesn'thandle"+request);
if(successor!=null){
successor.handleRequest(request);
}
}
}

}
